package com.song.JavaThread_day02.ch2_2;

public class Bank  implements Runnable{
	
	private Account account;

	public Bank(Account account) {
		super();
		this.account = account;
	}

	public void run() {
		for(int i=0;i<1000 ;i++)
		{
			account.subAmount(1000);
		}
		
	}
	
	
	
	
}
